﻿using System;
using System.Collections.Generic;
using System.Runtime.InteropServices;

namespace Aribaccio.Security
{
    /// <summary>
    /// 安全认证加密解密算法接口
    /// </summary>
    [ComVisible(true)]
    [InterfaceType(ComInterfaceType.InterfaceIsIDispatch)]
    public interface ISecurity
    {
        /// <summary>
        /// 加密方法
        /// </summary>
        /// <param name="argEncryptString">待加密的明文</param>
        /// <returns>加密密文字符串</returns>
        [DispId(1)]
        string Encrypt(string argEncryptString);
        /// <summary>
        /// 解密方法
        /// </summary>
        /// <param name="argDecryptString">待解密的密文</param>
        /// <returns>解密明文字符串</returns>
        [DispId(2)]
        string Decrypt(string argDecryptString);
    }
}
